<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/2/27
 * Time: 12:39
 */

namespace App\Http\Controllers\Admin;


use App\Http\Logics\Admin\SwiperLogic;
use App\Http\Traits\SwiperTrait;
use App\Http\Controllers\BaseController;
class SwiperController extends BaseController
{
    use SwiperTrait;
    public function getSwiperList()
    {
        $limit = $this->limit;
        $data = [
            'limit' => $limit
        ];
        $response = SwiperLogic::getSwiperList($data);
        if ($response->code){
            return self::response($response->code, $response->message);
        }
        return self::response($response->code, $response->message, $response->data);
    }
}